home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16120 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: grimsel.zurich.ibm.com!usenet
  2. From: wgk@zurich.ibm.com (Keith Whittingham)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: word vs. byte alignment option
  5. Date: 9 Apr 1996 16:51:55 GMT
  6. Organization: IBM Research, ZRH
  7. Message-ID: <4ke4jb$nfv@grimsel.zurich.ibm.com>
  8. References: <4kdq3b$lhn@sloth.swcp.com>
  9. Reply-To: wgk@zurich.ibm.com
  10. NNTP-Posting-Host: pine.zurich.ibm.com
  11. X-Newsreader: IBM NewsReader/2 v1.00
  12.  
  13. In <4kdq3b$lhn@sloth.swcp.com>, dvines@sparton.com (Dudley Vines) writes:
  14. >Anybody ever have trouble with Borland C++ compiler word vs. byte 
  15. >alignment option?  When I attempt to load a word aligned array into a byte 
  16. >aligned array, the data in the byte aligned array is off by one byte.
  17. >
  18. >The arrays come from separate modules with different alignement options 
  19. >set.
  20. >
  21. >I thought the alignment option only affected speed or memory usage...why 
  22. >doesn't the compiler figure out how to handle the data right?
  23. >
  24. >e-mail help, please...
  25. >
  26.  
  27. Dud,
  28.  
  29. Really, this is strange behaviour - I should mail this to Peter Seebach
  30. seebs@solon.com to see if he can answer it and maybe put it in his FAQ..
  31.  
  32. Keith
  33.  
  34.  
  35.